package org.easybuy.servlet;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.easybuy.dao.NewsDao;
import org.easybuy.daoimpol.NewsDaoImopl;
import org.easybuy.entity.News;

public class NewsServlet extends HttpServlet {
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		this.doPost(request, response);
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		NewsDao newsDao = new NewsDaoImopl();
		List<News> list = new ArrayList<News>();
		list = newsDao.getIndexNews();
		PrintWriter out = response.getWriter();
		
	}

}
